//
//  MyInforTableViewCell.m
//  SsehMaster
//
//  Created by 杨阳 on 2018/8/4.
//  Copyright © 2018年 yinlong. All rights reserved.
//

#import "MyInforTableViewCell.h"

@interface MyInforTableViewCell ()

@property (nonatomic,strong) NSIndexPath * index;

@end

@implementation MyInforTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

-(void)configData:(NSDictionary *)dataDic andIndexPath:(NSIndexPath *)indexPath{
    self.index = indexPath;
    self.titleLabel.text = [NSString emptyStr:dataDic[@"title"]];
    if (kStringIsEmpty(dataDic[@"content"])) {
        self.rightTF.text = nil;
    }else{
        self.rightTF.text = dataDic[@"content"];
    }
    self.rightTF.placeholder = dataDic[@"pl"];
}

- (IBAction)rightTFChanged:(id)sender {
    
    if (_getTextBlock) {
        _getTextBlock(self.index,self.rightTF.text);
    }
    
}





- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
